//MyThis.java
package com.xyc.mythis;
class Cat2
{
	private int age;
	private int weight;
	Cat2(int age,int weight)
	{
		this.age=age;
		this.weight=weight;
	}
	//private int age=0;
	int getAge()
	{
		return age;
	}
	int getWeight()
	{
		return weight;
	}
	void setAge(int age)
	{
		this.age=age;
	}
	void setWeight(int weight)
	{
		this.weight=weight;
	}
}
public class MyThis2
{
	public static void main(String[] args)
	{
		Cat2 cat2=new Cat2(1,1);
		System.out.println("Cat2     age:"+cat2.getAge()+"\tweight:"+cat2.getWeight());
		cat2.setAge(2);
		cat2.setWeight(3);
		System.out.println("Cat2     age:"+cat2.getAge()+"\tweight:"+cat2.getWeight());
	}
}